package com.disgnpattern.learn.chapter1;

import lombok.Data;

/**
 * @author dxy
 * @version 1.0
 * @date 2021/10/21 10:58
 * @decripton 运算的抽象类
 */
public abstract class AbstractOperation {
    private Double numberA = null;
    private Double numberB = null;

    /**
     * 获取结果
     *
     * @return
     * @throws Exception
     */
    public abstract Double getResult() throws Exception;

    public Double getNumberA() {
        return numberA;
    }

    public void setNumberA(Double numberA) {
        this.numberA = numberA;
    }

    public Double getNumberB() {
        return numberB;
    }

    public void setNumberB(Double numberB) {
        this.numberB = numberB;
    }
}
